package utils;

import org.hamcrest.core.IsEqual;

public class Logger {
	public static boolean enabled = true;

	public final static int DEBUG = 0;
	public final static int TRACE = 1;  
	public final static int INFO = 2;
	public static int level = TRACE;
	
	protected static boolean isEnabled()
	{
		return enabled;
	}
	
	public static void DEBUG(String format)
	{
		if (isEnabled() && level <= DEBUG)
		{
			System.out.println(format);
		}

	}
	
	public static void TRACE(String format)
	{
		if (isEnabled() && level <= TRACE)
		{
			System.out.println(format);
		}

	}
	
	public static void INFO(String format)
	{
		if (isEnabled() && level <= INFO)
		{
			System.out.println(format);
		}
	}
}
